
function Clear-AspNetTempFolders
{
	[CmdletBinding()]
	param()

	iisreset /stop
	$toRemove=Get-ChildItem -Path "$($env:SystemRoot)\Microsoft.NET" -Recurse -Directory -Include "Temporary ASP.NET Files" -ErrorAction Continue | 
	Get-ChildItem -Directory | Sort-Object -Property FullName

	$toRemove

	$toRemove | Remove-Item -Recurse -ErrorAction SilentlyContinue

	iisreset /start
}